[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Function strshright - shift string right
Syntax void strshright(char *source, int count);
Prototype in stringhk.h
Remarks strchright shifts the characters in the string
source right count places, padding with spaces.
Return value returns source.
Example #include <stringhk.h>
#include <stdio.h> /* for the printf */
main()
{
char msg[25];
strcpy(msg,"Buy a Mac II");
printf("%s\n",msg);
printf("%s\n",strshright(msg,4));
}
Program output Buy a Mac II
Buy a Ma
See Also:
strshleft()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson